package com.fc.persistence.core;

import java.util.List;

import com.fc.persistence.dao.DAOTemplate;

public interface ITranscation {
	public void save(DAOTemplate obj);

	public void delete(DAOTemplate obj);

	public void update(DAOTemplate obj);

	public DAOTemplate getById(Long id,@SuppressWarnings("rawtypes") Class clazz);
	
	public List<DAOTemplate> getAll(String tableName);
	
	public List<DAOTemplate> getBySQL(String sql);
	
	public List<DAOTemplate> getBySQL(String sql,int startIndex,int limit);
	
	public void deleteBySQL(String sql);
}
